import { observable, action } from 'mobx';
import { BrowserHrm } from 'weaver-mobile-page';

export default class BlogBrowserHrmStore {
    // 目前搜索历史存放 localStorage，需要指定固定 id
    @observable browserHrm = new BrowserHrm.Store({ route: '/browser-hrm/demo-0', id: 'singleHrm' });
    @observable browserHrmValue = [];
    @observable browserHrm1 = new BrowserHrm.Store({ route: '/browser-hrm/demo-0', id: 'mulHrm' });
    @observable browserHrmValue1 = [];

    @action
    setState = (params = {}) => {
        Object.keys(params).forEach((key) => {
            this[key] = params[key];
        });
    }
}